package com.example.webserver.aono;


import com.example.webserver.validation.statevalidation;

import javax.validation.Constraint;
import javax.validation.Payload;
import javax.validation.constraints.Size;
import java.lang.annotation.*;

@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(
        validatedBy = {statevalidation.class}
)
public @interface State {
    String message() default "state的参数只能为草稿或已发布";
    Class<?>[] groups() default{};
    Class<? extends Payload>[] payload() default {};
}
